package com.chat.view;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class AddFriendView {
    static Stage loginStage;
    static  Parent root;
    public static  void start(Stage primaryStage)throws IOException{
        loginStage = primaryStage;
        root=FXMLLoader.load(AddFriendView.class.getResource("addfriend.fxml"));
        primaryStage.setTitle("个人信息");
        primaryStage.setScene(new Scene(root,600,500));
        primaryStage.show();
    }
    public static Object $(String id) {
        return (Object) root.lookup("#" + id);
    }
}
